
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="cp" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>摄影展</title>
  <style>
    #regUL{margin:0 auto;width:200px;position: relative;top:200px;}
    body{
      background: url("../img/14.jpg") no-repeat;
      background-size: 1920px;
    }
  </style>
</head>
<body>

<!-- 中间内容 -->
<div class="container-fluid" id="regUL">
  <div class="row">
    <!-- 控制内容 -->
    <div class="col-md-12">
      <hr/>
      <h1 class="title center">上传照片</h1>
      <hr/>
      <form action="${cp}/product/pushProduct.do">
        <div class="col-sm-offset-2 col-md-offest-2">
          <div  class="form-horizontal">
            <div class="form-group">
              <label for="name" class="col-sm-2 col-md-2 control-label">照片名称</label>
              <div class="col-sm-6 col-md-6">
                <input type="text" class="form-control" name="name" id="name" placeholder="" />
              </div>
            </div>
            <div class="form-group">
              <label for="describe" class="col-sm-2 col-md-2 control-label">照片描述</label>
              <div class="col-sm-6 col-md-6">
                <textarea type="text" class="form-control" name="describe" id="describe" placeholder=""></textarea>
              </div>
            </div>
            <div class="form-group">
              <label for="site" class="col-sm-2 col-md-2 control-label">拍摄地址</label>
              <div class="col-sm-6 col-md-6">
                <input type="text" class="form-control" name="site" id="site" placeholder="" />
              </div>
            </div>
            <div class="form-group">
              <label for="image" class="col-sm-2 col-md-2 control-label" accept="image/jpg">上传图片</label>
              <div class="col-sm-6 col-md-6">
                <input type="file"  name="image" id="image" />
              </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-6" id="imgPreSee" >
              </div>
            </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-6">
                <button class="btn btn-lg btn-primary btn-block" type="submit " style="margin-top: 30px;width:80px;height:30px;border:none;border-radius: 10px;background: #3872f6; ">确认添加</button>
              </div>
            </div>
          </div>
          <br/>
        </div>
      </form>
    </div>
  </div>
</div>
</div>
</body>
</html>
